package com.azier.kapacitor.script.node.nodebind;

import com.azier.kapacitor.script.node.FromNode;
import com.azier.kapacitor.script.node.Node;

/**
* 1 * @Author: luoj
* 2 * @Date: 2019/11/8 11:27
* 3
*/

/**
Creates a new stream node that can be further filtered using the Database, RetentionPolicy, Measurement and Where properties. From can be called multiple times to create multiple independent forks of the data stream.
**/

/**
创建一个新的流节点，该节点可以使用Database，RetentionPolicy，Measurement和Where属性进行进一步过滤。可以多次调用From，以创建数据流的多个独立派生。
**/
public interface FromNodeBind extends Node {
/** ------------------------------------------------ **/
    /** 链接节点  **/
    /** ------------------------------------------------ **/
    default FromNode from(){
        FromNode nextNode = new FromNode();
        this.setNextNode(nextNode);
        nextNode.zetHeadNode(this.getHeadNode());
        return nextNode;
    }
}